package com.woniuxy.company5;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootTest
@Slf4j
class SysLoginServiceTest {
    @Autowired
    private BCryptPasswordEncoder passwordEncoder;

    @Test
    void encoder() {
        String encode = passwordEncoder.encode("111");
        System.out.println("asdf   "+encode);
        log.info(encode);

    }
}